package com.xiyu.service.enums.material.stock;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 物资出库单物资去向
*/
@Getter
@AllArgsConstructor
public enum MaterialStockOutDestinationTypeEnum implements IntArrayValuable {

    /**
    * 调拨
    */
    TRANSFER(3, "调拨"),
    /**
    * 盘点
    */
    INVENTORY(4, "盘点"),
    /**
    * 使用
    */
    USE(1, "使用"),
    /**
    * 出售
    */
    SALES(2, "出售");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(MaterialStockOutDestinationTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(MaterialStockOutDestinationTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
